package com.likl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.likl.domain.Book;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:springboot_study
 * Description:
 *
 * @Create: 2024/7/2 10:57
 * @author: likl
 * @e-mail: likl1102@foxmail.com
 * @QQ: 2514927731
 */
public interface BookService {
    Boolean save(Book book);

    Boolean update(Book book);

    Boolean delete(Integer id);

    Book getById(Integer id);

    List<Book> getAll();

    IPage<Book> getPage(int currentPage, int pageSize);
}
